package com.zxm.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class UserBodyInfo implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 用户Id
     */
    private Integer userid;

    /**
     * 用户体重
     */
    private String userWeight;

    /**
     * 用户胸围
     */
    private String userBust;

    /**
     * 用户腰围
     */
    private String userWaist;

    /**
     * 用户臀围
     */
    private String userButtocks;

    /**
     * 用户身高
     */
    private String userHeight;

    /**
     * 用户身体健康指数
     */
    private String userBmi;

    /**
     * 用户图片
     */
    private String userImg;

    /**
     * 用户身体情况录入时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userBodyTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUserWeight() {
        return userWeight;
    }

    public void setUserWeight(String userWeight) {
        this.userWeight = userWeight;
    }

    public String getUserBust() {
        return userBust;
    }

    public void setUserBust(String userBust) {
        this.userBust = userBust;
    }

    public String getUserWaist() {
        return userWaist;
    }

    public void setUserWaist(String userWaist) {
        this.userWaist = userWaist;
    }

    public String getUserButtocks() {
        return userButtocks;
    }

    public void setUserButtocks(String userButtocks) {
        this.userButtocks = userButtocks;
    }

    public String getUserHeight() {
        return userHeight;
    }

    public void setUserHeight(String userHeight) {
        this.userHeight = userHeight;
    }

    public String getUserBmi() {
        return userBmi;
    }

    public void setUserBmi(String userBmi) {
        this.userBmi = userBmi;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Date getUserBodyTime() {
        return userBodyTime;
    }

    public void setUserBodyTime(Date userBodyTime) {
        this.userBodyTime = userBodyTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserBodyInfo other = (UserBodyInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getUserWeight() == null ? other.getUserWeight() == null : this.getUserWeight().equals(other.getUserWeight()))
            && (this.getUserBust() == null ? other.getUserBust() == null : this.getUserBust().equals(other.getUserBust()))
            && (this.getUserWaist() == null ? other.getUserWaist() == null : this.getUserWaist().equals(other.getUserWaist()))
            && (this.getUserButtocks() == null ? other.getUserButtocks() == null : this.getUserButtocks().equals(other.getUserButtocks()))
            && (this.getUserHeight() == null ? other.getUserHeight() == null : this.getUserHeight().equals(other.getUserHeight()))
            && (this.getUserBmi() == null ? other.getUserBmi() == null : this.getUserBmi().equals(other.getUserBmi()))
            && (this.getUserImg() == null ? other.getUserImg() == null : this.getUserImg().equals(other.getUserImg()))
            && (this.getUserBodyTime() == null ? other.getUserBodyTime() == null : this.getUserBodyTime().equals(other.getUserBodyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getUserWeight() == null) ? 0 : getUserWeight().hashCode());
        result = prime * result + ((getUserBust() == null) ? 0 : getUserBust().hashCode());
        result = prime * result + ((getUserWaist() == null) ? 0 : getUserWaist().hashCode());
        result = prime * result + ((getUserButtocks() == null) ? 0 : getUserButtocks().hashCode());
        result = prime * result + ((getUserHeight() == null) ? 0 : getUserHeight().hashCode());
        result = prime * result + ((getUserBmi() == null) ? 0 : getUserBmi().hashCode());
        result = prime * result + ((getUserImg() == null) ? 0 : getUserImg().hashCode());
        result = prime * result + ((getUserBodyTime() == null) ? 0 : getUserBodyTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", userWeight=").append(userWeight);
        sb.append(", userBust=").append(userBust);
        sb.append(", userWaist=").append(userWaist);
        sb.append(", userButtocks=").append(userButtocks);
        sb.append(", userHeight=").append(userHeight);
        sb.append(", userBmi=").append(userBmi);
        sb.append(", userImg=").append(userImg);
        sb.append(", userBodyTime=").append(userBodyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}